﻿using ITXHWEB.Models;
using ReflectionStudio.Core.Events;
using System;
using System.Data;
using System.Web.Mvc;
using WPFExcelReport;
using WPFExcelReport.Helpers;
using ITXHWEB.Infrastructure;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
namespace ITXHWEB.Controllers
{
    public partial class WBBSTController : ITXController
    {
        [ChildActionOnly]
        public ActionResult PWBNEWQI(string returnUrl)
        {
            return PartialView();
        }

        [HttpPost]
        [AllowAnonymous]
        [ValidateAntiForgeryToken]
        public ActionResult PWBNEWQI(WBFEHLModel model, string returnUrl)
        {
            try
            {
                MABF.VWBB.IsERKReady=false;
                MABF.IsSTKNRReady = false;
                MABF.IsAMRunReady =true;
                MABF.IsVAFReady= false;
                MABF.IsVAReady = false;
                MABF.IsWFReady = false;
                MABF.IsWSReady = false;
                MABF.IsPDCReady = false;
                MABF.IsABPReady = false;
                MABF.IsEXORDReady = false;
                MABF.IsAMReady = true;  
            }
            catch (Exception ex)
            {
                //ModelState.AddModelError("",ex.Message);
                Tracer.Error(ex.StackTrace, ex);
            }
            return RedirectToAction(MAPP, MAPP);
        } 
    }
}
